CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(3d-ardoran)

#SET(CMAKE_CXX_COMPILER g++)
#FIND_PACKAGE(OpenCV REQUIRED)
FIND_PACKAGE(PCL 1.7 REQUIRED)
FIND_PACKAGE(Qt4 4.7 REQUIRED)
FIND_PACKAGE(VTK)
INCLUDE(${VTK_USE_FILE})
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${PCL_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
LINK_DIRECTORIES(${PCL_LIBRARY_DIRS} ${QT_LIBRARY_DIRS})
ADD_DEFINITIONS(${PCL_DEFINITIONS} ${QT_DEFINITIONS})
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
SET(3d-ardoran_RCS resources.qrc)
SET(3d-ardoran_SOURCES main.cpp Ui.cpp model.cpp keypoints.cpp functions.cpp correspond.cpp features.cpp registration.cpp load.cpp)
SET(3d-ardoran_HEADERS Ui.h model.h keypoints.h functions.h correspond.h features.h registration.h load.h)

QT4_WRAP_CPP(3d-ardoran_HEADERS_MOC ${3d-ardoran_HEADERS})
QT4_ADD_RESOURCES( 3d-ardoran_RC_SRCS ${3d-ardoran_RCS} )

add_executable (3d-ardoran ${3d-ardoran_SOURCES} ${3d-ardoran_HEADERS_MOC} ${3d-ardoran_RC_SRCS})
target_link_libraries (3d-ardoran ${PCL_LIBRARIES} ${QT_LIBRARIES} QVTK vtkHybrid)
